All Packages Class Hierarchy This Package Previous Next Index
Class quicktime.std.qtcomponents.TimeCodeDef
java.lang.Object
|
+----quicktime.util.QTByteObject
|
+----quicktime.std.qtcomponents.TimeCodeDef
- public final class TimeCodeDef
- extends QTByteObject
- implements PrimitivesLib, Cloneable
The TimeCode definition class contains timecode formatting information.
-
kNativeSize
- This is the size (the number of bytes) that are required for this class
-
TimeCodeDef()
- Creates a TimeCodeDef object which has no initial settings.
-
clone()
- Makes a copy of a object.
-
getFlags()
- Returns the current flag settings.
-
getFrameDuration()
- Returns the duration of each frame.
-
getFramesPerSecond()
- Returns the number of frames per second as the closest integral value.
-
getTimeScale()
- Returns the time scale in terms of the frameDuration.
-
setFlags(int)
- Sets the flags - dropFrame, etc
-
setFrameDuration(int)
- Sets the duration of each frame.
-
setFramesPerSecond(int)
- Sets the number of frames per second as the closest integral value.
-
setTimeScale(int)
- Sets the time scale in terms of the frameDuration.
-
toString()
- String representation of class.
kNativeSize
public static final int kNativeSize
- This is the size (the number of bytes) that are required for this class
TimeCodeDef
public TimeCodeDef()
- Creates a TimeCodeDef object which has no initial settings.
getFlags
public int getFlags()
- Returns the current flag settings.
- Returns:
- flags
setFlags
public void setFlags(int flags)
- Sets the flags - dropFrame, etc
- Parameters:
- flags - new flag value
getTimeScale
public int getTimeScale()
- Returns the time scale in terms of the frameDuration.
TimeScale / frameDuration = actual number of frames per second
- Returns:
- time scale
setTimeScale
public void setTimeScale(int timeScale)
- Sets the time scale in terms of the frameDuration.
TimeScale / frameDuration = actual number of frames per second
- Parameters:
- timeScale - the new time scale value
getFrameDuration
public int getFrameDuration()
- Returns the duration of each frame.
TimeScale / frameDuration = actual number of frames per second
- Returns:
- the current frame duration
setFrameDuration
public void setFrameDuration(int frameDuration)
- Sets the duration of each frame.
TimeScale / frameDuration = actual number of frames per second
- Parameters:
- frameDuration - new frame duration value
getFramesPerSecond
public int getFramesPerSecond()
- Returns the number of frames per second as the closest integral value. The
actual frames per second are found by the following:
TimeScale / frameDuration = actual number of frames per second
- Returns:
- the specified, integral, frames per second
setFramesPerSecond
public void setFramesPerSecond(int fps)
- Sets the number of frames per second as the closest integral value. The
actual frames per second are found by the following:
TimeScale / frameDuration = actual number of frames per second
- Parameters:
- fps - the specified, integral, frames per second
toString
public String toString()
- String representation of class.
- Overrides:
- toString in class QTByteObject
clone
public Object clone()
- Makes a copy of a object.
- Overrides:
- clone in class Object
All Packages Class Hierarchy This Package Previous Next Index